package feeinterface.utils;

import java.io.UnsupportedEncodingException;

import com.ulwx.tool.ByteUtils;

public class Xor {
	public static String xor(String src, byte key) throws UnsupportedEncodingException {   
		if(src==null)
			return null;
        byte[] srcBuf = src.getBytes("utf-8");   
        byte[] targBuf = ByteUtils.xor(srcBuf, key);
        return new String(targBuf);   
    }
}
